// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import filters from './service/filters'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import TopGitment from 'top-gitment'

Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.use(TopGitment);

Vue.http.options.xhr = { withCredentials: true }

/* eslint-disable no-new */
window.vm=new Vue({
    el: '#app',
    store,
    router,
    template: '<App/>',
    components: {App}
})

Object.keys(filters).forEach(function (key, index, arr) {
    Vue.filter(key, filters[key]);
})
